// Simple fan control via sysfs PWM only.
// Env: FAN_PWM_PATH (default "/sys/class/hwmon/hwmon1/pwm1")
#ifndef FAN_H
#define FAN_H

int fan_set_on(int on);          // on!=0: on, 0: off
int fan_set_speed(int percent);  // 0..100 written directly to PWM
int control_fan(float temperature); // >29C on, else off

#endif /* FAN_H */

